<%
	HttpSession httpSession = request.getSession();
	Employee employee = (Employee) session.getAttribute("user");
	if (employee == null || employee.getRole() == null) {
		response.sendRedirect("errorLogin.jsp");
	}
%>
<%@ page import="com.msti.entity.Student"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

<%@page import="com.msti.entity.Employee"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title >Add User</title>
<link rel="stylesheet" type="text/css" href="css/common.css" />
<script type="text/javascript" src="js/common.js"></script>
</head>

<body>
<div class="wrapper">
	<form action="addEmployee.do" method="post" id="add-user" class="form" >
		<div id="form_header">Add New User</div>
		<ul>
			<li>	
				<a href="logout.do">logout</a>	
			</li>
			<li>	
				<a href="">home</a>	
			</li>
			<li>
				<p class="label">Name :</p>
				<input type="text" name="name" class="txt_field" />
			</li>
			<li>
				<p class="label">NIC :</p>
				<input type="text" name="NICNO" class="txt_field" id="nic" />
			</li>
			<li>
				<p class="label">Center :</p>
				<select name="center">
					<option label="OTC">OTC</option>
					<option label="RTC">RTC</option>
				</select>
			</li>
			<li>
				<p class="label">Role :</p>
				<select name="role">
					<option >Administrator</option>
					<option >Accountant</option>
				</select>
			</li>
			<li>
				<p class="label">Phone :</p>
				<input type="text" name="phone" class="txt_field" />
			</li>
			<li>
				<p class="label">User Name :</p>
				<input type="text" name="uName" class="txt_field" />
			</li>
			<li>
				<p class="label">Password :</p>
				<input type="password" name="pWord" class="txt_field" />
			</li>
			<li>
				<p class="label">&nbsp;</p>
				<input type="submit" value="Register" class="submit_btn">
			</li>
		</ul>
		<div class="spacer"></div>
	</form>
	<div class="company_name_bar"><marquee direction="left">Mercantile Seamen Training Institute Ltd.</marquee></div>
</div>
</body>
</html>
